﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using YouHP.Model;
using YouHP.Atom ;
namespace YouHP.Logic
{
    
    public class XiaoChuanLogic
    {
        PatientXiaoChuan _xiaoChuan = new PatientXiaoChuan();
        
        public XiaoChuanLogic()
        {
        }

        public List<XiaoChuanInfo> GetHistories(int iPrId, DateTime dStart, DateTime dEnd, int iPageSize, int iPageNo, out int iCount)
        {
            return _xiaoChuan.GetHistoriesByPrId(iPrId, dStart, dEnd, iPageSize, iPageNo, out iCount); 
        }

        public int AddHistory(XiaoChuanInfo info)
        {
            return _xiaoChuan.AddRecord(info); 
        }

        public int UpdateHistory(XiaoChuanInfo info)
        {
            return _xiaoChuan.UpdateRecord(info); 
        }

        public int DeleteHistory(XiaoChuanInfo info)
        {
            return _xiaoChuan.DeleteRecord(info); 
        }

        public XiaoChuanInfo GetHistory(int iId, int iPrId)
        {
            return _xiaoChuan.GetRecord(iId, iPrId);
        }
    }
}
